
//
//  SearchViewController.m
//  test2
//
//  Created by 衣尚品1 on 15/5/14.
//  Copyright (c) 2015年 衣尚品1. All rights reserved.
//

#import "SearchViewController.h"

@interface SearchViewController ()

@end

@implementation SearchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self aaa];
    self.viewY.layer.cornerRadius = 15;
    self.viewP.layer.cornerRadius = 15;
    self.viewO.layer.cornerRadius = 15;
}

- (void)aaa{
    self.view1.constant = 25;
    self.view2.constant = 50;
    self.view3.constant = 40;
    [UIView animateWithDuration:1 animations:^{
        [self.view layoutIfNeeded];
    }];
    [self performSelector:@selector(bbb) withObject:nil afterDelay:1.5f];
}

- (void)bbb{
    self.view1.constant = 5;
    self.view2.constant = 70;
    self.view3.constant = 80;
    [UIView animateWithDuration:1 animations:^{
        [self.view layoutIfNeeded];
    }];
    [self performSelector:@selector(aaa) withObject:nil afterDelay:1.5f];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
